package com.example.jpetstoreclient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.jpetstoreclient.common.CommonResponse;
import com.example.jpetstoreclient.domain.Collection;

import java.util.List;

public interface CollectionService extends IService<Collection> {

    //添加收藏
    CommonResponse<Collection> addCollection(int user_id,int animal_id);

    //取消收藏
    CommonResponse<Object> deleteCollection(int collection_id);

    //获取一个用户的所有收藏（含有Animal详细信息）
    CommonResponse<List<Collection>> getAllCollections(int user_id);

    //判断商品已收藏 or 未收藏
    CommonResponse<Boolean> isCollected(int user_id,int animal_id);
}
